﻿@{
    ViewBag.EasyuiVersion = "1.3.2";
    ViewBag.locale = "zh_CN";
    ViewBag.theme = Zephyr.Utils.ZCookies.GetCookies("theme");
}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <title>@ViewBag.Title</title>
        <link href="~/Images/favicon.ico" rel="shortcut icon" type="image/x-icon" />
        <meta name="viewport" content="width=device-width" />
       
        <!--加载共通CSS-->
        <link href="~/Content/css/base.css" rel="stylesheet" type="text/css" />
        <!--[if IE]><link href="~/Content/css/hack/ie.css" rel="stylesheet" type="text/css" /><![endif]-->

        <!--加载960CSS框架-->
        <link href="~/Content/css/960/fluid/reset.css" rel="stylesheet" type="text/css"  />
        <link href="~/Content/css/960/fluid/text.css" rel="stylesheet" type="text/css" />
        <link href="~/Content/css/960/fluid/grid.css" rel="stylesheet" type="text/css" />
        <!--[if IE 6]><link href="~/Content/css/960/fluid/ie6.css" rel="stylesheet" type="text/css" /><![endif]-->
        <!--[if IE 7]><link href="~/Content/css/960/fluid/ie.css"  rel="stylesheet" type="text/css" /><![endif]-->

        <!--加载主题CSS-->
        <link href="~/Content/themes/@ViewBag.theme/style.css" rel="stylesheet" type="text/css" />  

        <!--加载按钮CSS-->
        <link href="~/Content/css/btns/css3btn.css" rel="stylesheet" type="text/css" />
        <link href="~/Content/css/btns/sexybuttons.css" rel="stylesheet" type="text/css" />
    
        <!--加载组件CSS-->
        <link href="~/Content/js/jquery-plugin/showloading/showLoading.css" rel="stylesheet" type="text/css" />
    
        <!--加载样式修正CSS-->
        <link href="~/Content/css/hack/fix.css" rel="stylesheet" type="text/css" />
    
        <!--加载jQuery-->
        <script src="~/Content/js/jquery/jquery-1.8.1.min.js" type="text/javascript" ></script>
    </head>
    <body class="z-body">
        <div class="z-toolbar">
            <a id="a_refresh" href="#" plain="true" class="easyui-linkbutton" icon="icon-arrow_refresh" title="刷新" data-bind="click:refreshClick">刷新</a>
            <a id="a_add"    href="#" plain="true" class="easyui-linkbutton" icon="icon-add" title="新增" data-bind="click:addClick">新增</a>
            <a id="a_edit"   href="#" plain="true" class="easyui-linkbutton" icon="icon-edit" data-bind="click:editClick" title="编辑">编辑</a>
            <a id="a_del"    href="#" plain="true" class="easyui-linkbutton" icon="icon-cross" title="删除" data-bind="click:deleteClick">删除</a>
            <a id="a_role"    href="#" plain="true" class="easyui-linkbutton" icon="icon-group" title="设置角色" data-bind="click:roleClick">设置角色</a>
        </div>
 
        <div id="gridlist" class="wrapper" style="width: 100%; height: 100%; margin-top:15px;"></div>

       <!--加载脚本库-->
        @Scripts.Render("~/Content/js/library")
        <!--加载easyui加载器-->
        <script type="text/javascript" src="~/Content/js/jquery-easyui-@ViewBag.EasyuiVersion/easyloader.js?locale=@ViewBag.locale&theme=@ViewBag.theme"></script>
        <script type="text/javascript" src="~/Areas/Sys/ViewModels/Organize.js"></script>
        <script type="text/javascript">
            var data = @Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(Model));
            ko.bindingViewModel(new viewModelOranize());
        </script>

        <script type="text/html" id="edit-template">
            <div class="container_16" style="width:90%;margin:5%;">  
                <div class="grid_3 lbl" >上级机构</div>  
                <div class="grid_13 val" ><input class="z-text" data-bind="easyuiCombotree:combotree,combotreeValue:form.ParentCode" /><span data-bind1="text:form.ParentCode" style="margin:5px;"></span></div>
                <div class="grid_3 lbl">机构编码</div>  
                <div class="grid_13 val"><input class="z-txt easyui-validatebox" style="width:220px;" data-bind="value:form.OrganizeCode" data-options="required:true" /></div>
                <div class="grid_3 lbl">机构名称</div>  
                <div class="grid_13 val"><input class="z-txt easyui-validatebox" style="width:220px;" data-bind="value:form.OrganizeName" data-options="required:true" /></div>
                <div class="grid_3 lbl">备注</div>  
                <div class="grid_13 val"><textarea class="z-txt" style="width:220px;height:50px;" data-bind="value:form.Description"  ></textarea></div>
                <div class="clear"></div>
            </div> 
            <div style="text-align:center;">
                <a class="easyui-linkbutton" data-options="iconCls:'icon-ok'" data-bind="click:confirmClick" href="javascript:void(0)"  >确定</a>  
                <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" data-bind="click:cancelClick" href="javascript:void(0)">取消</a> 
            </div>
        </script>

        <script type="text/html" id="setrole-template">
            <style type="text/css">
                .listview{ margin:0 !important;}
                .listview li{width:100px !important;background-color:skyblue !important;float:left;margin:3px;}
            </style>
            <div style="margin:5px;height:370px;overflow:auto;"  >
                <div style="border-bottom:1px solid #CCC; margin-bottom:5px;">
                    <span class="icon32 icon-org32" style="padding-left:48px;font-weight:bold; font-size:14px;color:#666;" data-bind="text:OrganizeName">机构名称</span> 
                </div>
                <div> 拥有角色(请点击勾选)：</div>
                <div class="metrouicss">
                    <ul class="listview"></ul>
                </div>
            </div>
            <div style="text-align:center;">
                <a class="easyui-linkbutton" data-options="iconCls:'icon-ok'" data-bind="click:confirmClick" href="javascript:void(0)"  >确定</a>  
                <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" data-bind="click:cancelClick" href="javascript:void(0)">取消</a> 
            </div>
        </script>
        <!--加载图标库CSS-->
        <link href="~/Content/css/icon/icon.css" rel="stylesheet" type="text/css" />
    </body>
</html>
 

